import mockjs from 'mockjs';
import departmentTree from './department';
export default {
  // 使用 mockjs 等三方库
  'GET /api/users': mockjs.mock({
    'data|100': [
      {
        'id|+1': 100001,
        userName: '@first',
        name: '@cname',
        'userType|1': ['普通用户', '普通管理员', '超级管理员'],
        'stauts|0-2': 2,
        createname: '@cname',
        date: '@datetime',
        'jigou|1': ['机场服务部', '基础服务部'],
      },
    ],
    page: 1,
    success: true,
    total: 100,
  }),
  'GET /api/users/getDepartmentTreeByRole': mockjs.mock({
    data: departmentTree,
    code: 0,
    msg: null,
  }),
  'GET /api/users/role': mockjs.mock({
    'data|100': [
      {
        'id|+1': 100001,
        roleName: '地服通用',
        roleDes: '这是一段角色描述的文案',
        createname: '@cname',
        'stauts|0-2': 2,
        date: '@datetime',
        'jigou|1': ['机场服务部', '基础服务部'],
      },
    ],
    page: 1,
    success: true,
    total: 100,
  }),
};
